<?php $this->load->view('common/head');?>

<?php $this->load->view('common/header');?>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <?php $this->load->view('common/sidebar');?>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <?php $this->load->view('common/breadcrumbs');?>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">

                <?php $this->load->view('common/set');?>
			
						<div class="row">
                            <span class="btn btn-purple btn-sm" id="add_addr" style="margin-left: 15px;">
                                <span class="ace-icon fa fa-user icon-on-right bigger-110"></span>
                                新增地址
                            </span>
                            <br>
							<div class="col-xs-12">
								<form accept-charset="UTF-8" id="new_add" action="" class="form-horizontal" role="form" method="post" novalidate="novalidate" id="form1">
                                    <table class="table table-striped table-bordered">
                                        <thead>
                                        <tr>
                                            <th class="center"><input class="check-all" type="checkbox" value=""></th>
                                            <th>地址ID</th>
                                            <th>姓名</th>
                                            <th>电话</th>
                                            <th>地址详情</th>
                                            <th>创建日期</th>
                                            <th class="center">操作</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                            <?php if($dress){ ?>
                                            <?php foreach ($dress as $key => $val) { ?>
                                            <tr>
                                                <td class="center">
                                                    <input class="dress_ids" type="checkbox" name="dress_ids[]" value="<?php echo $val['dress_id'];?>">
                                                </td>
                                                <td><?php echo $val['dress_id']; ?></td>
                                                <td><?php echo $val['dress_uname']; ?></td>
                                                <td><?php echo $val['dress_utel']; ?></td>
                                                <td><?php echo $val['dress_city'].$val['dress_udress'];?></td>
                                                <td class="center">
                                                     <?php echo date("Y-m-d H:i",$val['dress_add_time']); ?>
                                                </td>
                                                <td class="center">
                                                    <a class="red del" href="javascript:;" val="<?php echo site_url(X_URL.'personal/deladdr/'.$val['dress_id']);?>" title="删除">删除</a>
                                                </td>
                                            </tr>
                                            <?php }?>
                                            <?php }?>
                                        </tbody>
                                    </table>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div><!-- /.main-content -->

    <?php $this->load->view('common/footer');?>

    <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
        <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
    </a>
</div><!-- /.main-container -->
<?php $this->load->view('common/footerjs');?>
<?php echo admin_js_url('custom');?>
<script type="text/javascript">
    $("#add_addr").click(function () {
        $.popPage({
                url: baseurl+"index.php/manage/orders/tanchuang",
                title: "添加地址",
                data:{}
            },
            {
                height:$(window).height()
            });
    });
</script>
</body>
</html>